import Vue from 'vue'
import VueRouter from 'vue-router'
import  dept from '../views/dept'
import user from '../views/user'
import main from '../views/main'
import login from '../views/login'

Vue.use(VueRouter)

const routes = [
  {
    path: "/login",
    component: login
  },

  {
    path: "/main",
    component: main,
    children:[
      {
        path: "/dept/dept",
        component:dept,
      },
    ]
  },

  {
    path:"/user/user",
    component: user,
  }
]

const router = new VueRouter({
  routes
})

export default router
